package dongshi.daddy.abstractfactory.product.plane;

import dongshi.daddy.abstractfactory.product.Brake;
import dongshi.daddy.abstractfactory.product.Wheel;
import dongshi.daddy.factory.product.Vehicle;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
//@NoArgsConstructor
@AllArgsConstructor
public class Plane implements Vehicle {
    private Brake brake;
    private Wheel wheel;

    @Override
    public void sayHi() {
        System.out.println(this.getClass().getSimpleName() + "组装完毕！");
    }
}
